package parttern.absfactory;

public class ColorFactory extends AbsFactory {
    @Override
    public IShape getShape(String shapeName) {
        return null;
    }

    @Override
    public IColor getColor(String colorName) {
        switch (colorName) {
            case "RED":
                return new RedColor();
            case "GREEN":
                return new GreenColor();
        }
        return null;
    }
}
